# -*- coding: utf-8 -*-
# !/usr/bin/env python
__author__ = 'wenke1'

import os

#写一个函数，输出指定目录下所有文件名
def listfilename(dir='.'):
    filenameList = []
    for i in os.listdir(dir):
        if os.path.isfile(i):
            filenameList.append(i)
    print filenameList
listfilename()
#listfilename('D:\material\pythonTraining\pythonTraining')